package com.mmall.dao;

import com.mmall.pojo.Message;

import java.util.List;

public interface MessageMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Message record);

    int insertSelective(Message record);

    Message selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Message record);

    int updateByPrimaryKey(Message record);

    List<Message> selectParentListByGoodsId(Integer goodsId);

    List<Message> selectChildrenListByParentId(Integer parentId);

    List<Message> selectListByGoodsId(Integer goodsId);
}